package com.itheima.exerciseTest.method40_49.method40;

// 学生类
public class Student extends Person {
    private String stuid;

    public Student() {
        super();
    }

    public Student(String stuid) {
        this.stuid = stuid;
    }

    public Student(String name, int age, String gender, String stuid) {
        super(name, age, gender);
        this.stuid = stuid;
    }

    @Override
    public void eat() {
        System.out.println("学生正在吃饭");
        System.out.println("学号：" + stuid +
                "\n姓名：" + getName() +
                "\n年龄：" + getAge() +
                "\n性别：" + getGender());
    }
}
